package com.yao2san.simcasclient.controller;

import com.alibaba.fastjson.JSONObject;
import com.yao2san.simcasclient.config.ClientConfig;
import com.yao2san.simcasclient.config.ServerConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    @Autowired
    private ClientConfig clientConfig;
    @Autowired
    private ServerConfig serverConfig;

    @GetMapping("test")
    public String test() {

        return JSONObject.toJSONString(clientConfig) + "," + JSONObject.toJSONString(serverConfig);
    }
}
